-include ../../Makefile.options

MODNAME=chess
OBJS2=Exception.o WarnException.o CriticalException.o Cell.o Piece.o Pawn.o Chessboard.o Position.o Player.o Action.o King.o\
	Rook.o Bishop.o Chess.o Queen.o Knight.o MoveAction.o CastlingAction.o PawnPromotionAction.o SaveManager.o SimulatedMoveAction.o \
	SimulatedCastlingAction.o
MODLIBRARY=lib$(MODNAME).a

all: $(OBJS2)
	ar csr $(MODLIBRARY) $(OBJS2)

%.o: %.cpp
	$(CC) $(CFLAGS) -c $<

clean:
		@rm -Rf $(FILES_TO_CLEAN)
